package org.example.service.impl;

import org.example.dao.BookDao;
import org.example.dao.BrandDao;
import org.example.service.BrandService;

public class BrandServiceImpl implements BrandService {
    private BrandDao brandDao;
    private BookDao bookDao;

    public BrandServiceImpl(BrandDao brandDao, BookDao bookDao) {
        this.brandDao = brandDao;
        this.bookDao = bookDao;
    }

    @Override
    public void save() {
        System.out.println("BrandServiceImpl-save..");
        brandDao.save();
        bookDao.save();
    }
}
